import 'package:flutter/material.dart';
import 'package:travel/screen/flutter_screenutil.dart';

/// 屏幕适配

/// 宽度
double sw(double width) => width.w;

/// 高度
double sh(double height) => height.h;

/// 同高/同宽，比如 四方形
double sz(double size) => size.sw;

/// 字体
double sf(double fontSize) => fontSize.sp;

/// 圆角
double sr(double r) => r.r;

/// 获取页面边距信息，如：状态栏高度、底部安全区高度等
EdgeInsets getMediaQueryInfo(BuildContext context) => MediaQuery.of(context).padding;
